<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/10
 * Time: 10:33
 * 添加上传记录
 */

//获取参数
$ouf_filename = $route->bodyParams['ouf_filename'];                     //文件名称
$ouf_userid   = $route->bodyParams['ouf_userid'];                       //上传人的用户id
$ouf_oesid    = $route->bodyParams['ouf_oesid'];                        //上传人的机构id
$ouf_path     = $regexpObj->bodyV($response,$route,'ouf_path','NORMAL');//上传位置

//写入数组
$insertArr = [
    'ouf_filename'    => $ouf_filename,
    'ouf_userid'      => $ouf_userid,
    'ouf_oesid'       => $ouf_oesid,
    'ouf_path'        => $ouf_path,
    'ouf_create_time' => time(),
  
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_upload_file",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );